package com.shenmazong.serverapisafe.filter;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* @Description: 接口限流
* @Param:
* @return:
* @Author: 亮子说编程
* @Date: 2020/12/1 10:26
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ApiLimit {
    //time时间内请求的最大次数
    int count();

    //时间段内,单位：s
    int time();
}
